import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    activeIndex: '1',
    count: 0,
    permissionList:null,
  },
  mutations: {
    increase (state) {
      state.count++
    },
    setPermission(state,obj){
      state.permissionList = obj;
      var i = 0;
      i++;
    }
  },
  actions: {
    actionIncrease ({commit}) {
      commit('increase')
    },
    setPermission({commit},obj){
      commit('setPermission',obj)
    }
  }
})
export default store

